# HackerPort driver for Linux
# version 0.7.2 date 2007-05-04
# part of the hacker port project - http[s]://stefan.schuermans.info/hackerport/
# Copyright (C) 2003-2007 Stefan Schuermans <stefan@schuermans.info>
# Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html

CC = gcc
KERNEL_SRC = /usr/src/linux-2.4
CFLAGS = -Wall -O2
MODFLAGS = -I$(KERNEL_SRC)/include -DMODULE -D__KERNEL__

.phony: all debug normal clean

all: normal

debug: DFLAGS = -DDEBUG
debug: hkp_drv.o

normal: DFLAGS =
normal: hkp_drv.o

hkp_drv.o: hkp_drv.h hkp_drv.c
	$(CC) $(CFLAGS) $(DFLAGS) $(MODFLAGS) -c -o hkp_drv.o hkp_drv.c

clean:
	rm -f hkp_drv.o
